package com.mit.service.sale.dao;

import java.util.List;

import com.mit.common.exception.NoRecordUpdateException;
import com.mit.common.sale.dto.CustomerDTO;


public interface ICustomerDAO {
	CustomerDTO createCustomerDTO(CustomerDTO to);
	CustomerDTO updateCustomerDTO(CustomerDTO to) throws NoRecordUpdateException;
	List<CustomerDTO> retrievePagedCustomers(Integer orgId, String searchKey, Integer pageNo, Integer pageSize);
	Integer retrieveCustomersCount(Integer orgId, String searchKey);
	List<CustomerDTO> retrieveCustomerBasicInfo(Integer orgId, String searchKey);
	boolean hasCustomer(Integer orgId, Integer id, String name);
}
